import React from 'react'
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import AuditList from './auditList/index';
import AuditDetail from './auditDetail/index';

function App() {
    return (
        <BrowserRouter>
            <Switch>
                <Route path="/detail" component={AuditDetail} ></Route>
                <Route path="/" component={AuditList} ></Route>
            </Switch>
        </BrowserRouter>
    );
}
export default App;